package com.zhang.step;
import org.junit.Test;
import org.slf4j.bridge.SLF4JBridgeHandler;

import java.util.logging.Level;

public class Step5674475 {


    //桥接log4j
    @Test
    public void test1() {
/*        Logger logger = Logger.getLogger(Step5674475.class.getName());
        logger.trace("trace");
        logger.debug("debug");
        logger.info("info");
        logger.warn("warn");
        logger.error("error");
        logger.fatal("fatal");*/

    }


    //桥接jul
    @Test
    public void test2() {
        //移除jdk提供的julAPI
        SLF4JBridgeHandler.removeHandlersForRootLogger();
        SLF4JBridgeHandler.install();

        java.util.logging.Logger logger = java.util.logging.Logger.getLogger("com.zhang.test2.Properties");
        logger.finest("finest level");
        logger.finer("finer level");
        logger.fine("fine level");
        logger.config("config level");
        logger.info("info level");
        logger.warning("warning level");
        logger.severe("severe level");

    }

}
